cboj-loans-prc-api
Get Loan Details
Description: This endpoint is used to get the loan details based on loanId. The loanId being passed in path parameter..
Mulesoft Request:
Headers:
Mandatory Headers: x-channel-id,x-correlation-id, x-bank-id,client_id, client_secret
Optional Headers: x-sub-channel-id,x-user-id, Authorization,x-debug-flag,x-debug-flag, x-customer-id
Paramaters:
URI Params: /{id}/
Query Params: NA
Content-type: application/json
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاØ",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"customers": {
"customerId": "2038271"
},
"loans": [
{
"accountID": "4405216",
"branchCode": "JO0010002",
"contractDate": "20160428",
"maturityDate": "20640901",
"Term": "16010D",
"productGroup": "CBOJ Retail Loans",
"productId": "CBOJ.HL.JODI.LOAN",
"productName": "Retail Housing JODIBOR Loans",
"currency": "JOD",
"contractAmount": "50135.004",
"outstandingAmount": "49413.555",
"nextPaymentDate": "20640901",
"nextPaymentAmount": "49492.486",
"numberOfFutureInstallments": "1",
"totalNumberOfSettledBills": "1",
"totalNumberOfDues": "3",
"totalOverdueDays": "69",
"category": "3081",
"purpose": "001",
"interestRate": "0",
"totalDueAmount": "1590.768",
"payinAccountNumber": "4106430",
"payoutAccountNumber": "4106430",
"accruedPrincipalInterest": "78.931",
"accruedPenalty": "18.832",
"principalDue": "545.849",
"principalInterestDue": "1044.919",
"chargeDue": "0",
"parentLimitName": "Red Term Housing Loan",
"approvedLimits": "471937.471",
"totalUtilization": "389324.899",
"totalAvailableLimit": "0"
}
]
}
}
Sample Error Response:
400 :
{
"status":
{
"success": false,
"code": "400",
"reasonCode": "BadRequest",
"arabicMessage": "لم يتم العثور على سجلات تطابق Ù…Øددات البØØ«",
"englishMessage": "No records were found that matched the selection criteria",
"backendError": "No records were found that matched the selection criteria",
"backendCode": "T24003790"
}
}